package com.sbtr.business.feature.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import java.io.Serializable;

import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import io.swagger.annotations.ApiModel;


/**
 * 特征工程原始数据文件字段列表 实体类
 *
 * @author dgl
 * @since 2023-03-17
 */
@Data
@TableName("f_fe_datafile")
@ApiModel(value="FeDatafile对象", description="特征工程原始数据文件字段列表")
public class FeDatafile extends Model<FeDatafile> {

    @ApiModelProperty(value = "id")
    @TableId(value = "id")
    private Long id;

    @ApiModelProperty(value = "数据的bucket保存位置")
    private String bucketDir;

    @ApiModelProperty(value = "文件名称,唯一性验证，重复提示改名称")
    private String fileName;

    @ApiModelProperty(value = "文件别名,系统生成文件名称，不包含中文，唯一性")
    private String fileName2;

    @ApiModelProperty(value = "文件描述")
    private String fileDesc;

    @ApiModelProperty(value = "文件大小,后端读取生成")
    private String fileSize;

    @ApiModelProperty(value = "所属处理链id,特征处理链f_fe_operator表的ID")
    private Long processingId;

    @ApiModelProperty(value = "设备ID,Equipentity表ID")
    private Long equipentityId;

    @ApiModelProperty(value = "所属项目id,iteminfo表的ID")
    private Long iteminfoId;

    @ApiModelProperty(value = "所属项目名称")
    private String itemname;

    @ApiModelProperty(value = "如果是文本格式必填，读取方式1横,2竖标题")
    private Integer txtMethod;

    @ApiModelProperty(value = "创建者")
    private String creater;

    @TableField(value = "create_time",fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")// 后台传数据到前台
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") //前台传数据到后台
    private Date createTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
